package strategy;

import java.math.BigDecimal;

public class Cashier {
    private Buyer buyer;
    public Cashier(Buyer buyer) {
        this.buyer = buyer;
    }
    public BigDecimal pay(BigDecimal orderPrice) {
        return this.buyer.calPrice(orderPrice);
    }
}